import { Image, Text, View } from 'react-native'
import React, { Component } from 'react'
let tx1=require('./assets/img/avatar.png')
import  tx2  from "./assets/img/avatar.png";
export default class App extends Component {
  render() {
    return (
      <View>
        <Text>本地图片</Text>
        {/* <Image source={tx1}></Image> */}
        <Image source={tx2}></Image>
        <Text>远程图片</Text>
        <Image style={{width:198,height:136}}source={ {uri:'http://www.codeboy.com:9999/img/index/study_computer_img6.png'}}></Image>
      </View>
    )
  }
}